import request from '@/utils/request'

// 获取所有营销品牌列表
export const fetchMarketingBrandList = (params) => {
    return request({
        url: '/home/brand/list',
        method: 'get',
        params: params
    })
}

// 更新营销品牌推荐状态
export const updateRecommendStatus = (data) => {
    return request({
        url: '/home/brand/update/recommendStatus',
        method: 'post',
        data: data
    })
}

// 删除营销品牌
export const deleteMarketingBrand = (data) => {
    return request({
        url: '/home/brand/delete',
        method: 'post',
        data: data
    })
}

// 创建营销品牌
export const createMarketingBrand = (data) => {
    return request({
        url: '/home/brand/create',
        method: 'post',
        data: data
    })
}

// 更新营销品牌排序
export const updateMarketingBrandSort = (params) => {
    return request({
        url: '/home/brand/update/sort/' + params.id,
        method: 'post',
        params: params
    })
}